package com.sh.apiinterface;

import com.sh.apiclientsdk.client.NameApiClient;
import com.sh.apiclientsdk.client.RandomTxtClient;
import com.sh.apiclientsdk.model.User;

/**
 * @Auther: sh
 * @Version 1.0
 * @Description:
 */
public class Main {
    public static void main(String[] args) {
        String accessKey = "f8a927baceb4aa83924ce98d6ebe5563";
        String secretKey = "3717e7eff33e6ee2ebf18579f0960a58";
        RandomTxtClient randomTxtClient = new RandomTxtClient(accessKey, secretKey);
        String txt = randomTxtClient.getTxt();
        System.out.println(txt);
        NameApiClient nameApiClient = new NameApiClient(accessKey, secretKey);
        User sh = new User("sh");
        String name = nameApiClient.getName(sh);
        System.out.println(name);
    }
}

